/*    */ package my.rummyInterface;
/*    */ 
/*    */ import java.awt.Color;
/*    */ import java.awt.Font;
/*    */ import java.awt.GridLayout;
/*    */ import java.awt.event.ActionEvent;
/*    */ import java.awt.event.ActionListener;
/*    */ import javax.swing.BorderFactory;
/*    */ import javax.swing.JButton;
/*    */ import javax.swing.JPanel;
/*    */ import javax.swing.border.TitledBorder;
/*    */ 
/*    */ public class PanelSigMano extends JPanel
/*    */   implements ActionListener
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/* 23 */   public static String MANO = "MANO";
/*    */   private RummyInterface principal;
/*    */   private JButton btnMano;
/*    */ 
/*    */   public PanelSigMano(RummyInterface principalP)
/*    */   {
/* 36 */     this.principal = principalP;
/*    */ 
/* 39 */     setLayout(new GridLayout(1, 1));
/*    */ 
/* 42 */     TitledBorder borde = BorderFactory.createTitledBorder("Siguiente Mano");
/* 43 */     borde.setTitleColor(Color.BLUE);
/* 44 */     borde.setTitleFont(new Font("Arial", 1, 12));
/* 45 */     borde.setBorder(BorderFactory.createEmptyBorder());
/* 46 */     setBorder(borde);
/*    */ 
/* 49 */     this.btnMano = new JButton("Sig Mano");
/* 50 */     this.btnMano.addActionListener(this);
/* 51 */     this.btnMano.setActionCommand(MANO);
/* 52 */     add(this.btnMano);
/*    */   }
/*    */ 
/*    */   public void actionPerformed(ActionEvent e)
/*    */   {
/* 58 */     String comando = e.getActionCommand();
/*    */ 
/* 60 */     if (comando == MANO)
/* 61 */       this.principal.sigMano();
/*    */   }
/*    */ }

/* Location:           C:\Users\Yank\Documents\APO\Rummy\bin\
 * Qualified Name:     my.rummyInterface.PanelSigMano
 * JD-Core Version:    0.6.0
 */